/**
 * @Author: GuoXinyuan
 * @Date: 2021/4/28
 */
export const sleep = function (millis) {
    let now = new Date().getTime();
    let end = now + millis;
    while (now < end){
        now = new Date().getTime();
    }
}